Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plane: correct RTL_AUTOLAND=1 behaviour #26413

Merged
merged 2 commits into from
Apr 10, 2024

Conversation

peterbarker
Copy link
Contributor

@peterbarker peterbarker commented Mar 5, 2024

we are calling "reached_loiter_target" as part of our checks as to whether to fly home or not.

We need to call update_loiter so the L1 controller can update its internal state for the new waypoint which do_RTL has set.  Depending on location (but typically), that will mean that L1's reached_loiter_target() will then return false, so we fly home.

This bug was affected by f8d7be5e43686e5a20a1a59420c308ac1fab4c70 .  Any sort of altitude error greater than 10m would delay us entering the landing sequence, allowing the L1 controller to update its state.

autotest added for same

@peterbarker peterbarker added the WIP label Mar 5, 2024
@peterbarker peterbarker force-pushed the pr/autotest-RTL_AUTOLAND-1 branch 3 times, most recently from 48b13a4 to af1b12a Compare March 6, 2024 06:54
@peterbarker peterbarker changed the title autotest: add a test for RTL_AUTOLAND=1 behaviour Plane: correct RTL_AUTOLAND=1 behaviour Mar 6, 2024
@tridge tridge removed the DevCallEU label Mar 6, 2024
@peterbarker peterbarker force-pushed the pr/autotest-RTL_AUTOLAND-1 branch from af1b12a to 774bf1b Compare March 6, 2024 22:51
we are calling "reached_loiter_target" as part of our checks as to whether to fly home or not.

We need to call update_loiter so the L1 controller can update its internal state for the new waypoint which do_RTL has set.  Depending on location (but typically), that will mean that L1's reached_loiter_target() will then return false, so we fly home.

This bug was affected by f8d7be5 .  Any sort of altitude error greater than 10m would delay us entering the landing sequence, allowing the L1 controller to update its state.
@peterbarker peterbarker force-pushed the pr/autotest-RTL_AUTOLAND-1 branch from 774bf1b to e8808c3 Compare March 13, 2024 03:07
@peterbarker
Copy link
Contributor Author

Still waiting for partner to test.

@tridge tridge merged commit 39c87c0 into ArduPilot:master Apr 10, 2024
61 checks passed
@peterbarker peterbarker deleted the pr/autotest-RTL_AUTOLAND-1 branch April 10, 2024 07:58
@rmackay9
Copy link
Contributor

This is included in 4.5.2-beta1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 4.5.2-beta1
Development

Successfully merging this pull request may close these issues.

4 participants